<template>
  <div>
    <Dialog ref="dialog" :title="title" class="dialog">
      <el-table v-if="feedBackList.length" :data="feedBackList" style="width: 100%">
        <el-table-column prop="created_at" label="时间" />
        <el-table-column prop="image" label="照片">
          <template slot-scope="scope">
            <el-avatar :size="50" :src="scope.row.image" shape="square" />
          </template>
        </el-table-column>
        <el-table-column prop="remark" label="备注" />
      </el-table>
      <div v-else class="norecord">暂无反馈记录</div>
    </Dialog>
  </div>
</template>
<script>
import Dialog from '@/common/dialog'
export default {
  components: {
    Dialog
  },
  props: {
    feedBackList: {
      type: Array,
      default: () => []
    }
  },
  data() {
    return {
      title: '代言记录反馈'
    }
  },
  methods: {
    show() {
      this.$refs.dialog.show()
    }
  }
}
</script>
<style lang="scss" scoped>
@import "@/styles/el-table.scss";
@import '@/styles/mixin.scss';
.dialog /deep/ .el-dialog {
  min-width: 500px;
  .norecord {
    line-height: 20px;
    color: rgba(102, 102, 102, 1);
    font-size: 14px;
    text-align: center;
    font-family: Roboto;
    @include center()
  }
}
</style>
